#!/usr/bin/env node


const fs = require('fs'),
  src = process.argv[2] || __filename;

try {
  console.log(fs.statSync(src));
  console.log(` MODE: ${fs.statSync(src).mode}`);
}
catch(e){
  console.error(e.message);
}


//fs.statSync(src);//返回对象 
//console.log(fs.statSync(src));

